package cn.crm.controller;

import cn.crm.service.SysRoleService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/SysRole")
public class SysRoleController {
    @Autowired
    private SysRoleService sysRoleService;
    @PostMapping("/Page")
    public Page getPage(Page page){
        return sysRoleService.page(page);
    }
}
